<!DOCTYPE html>
<html>
    <head>
        <title><%= t('.title')%></title>
        <%= javascript_include_tag 'jquery-1.7.1.min', :media => 'application' %>
        <%= stylesheet_link_tag    "application", :media => "all" %>
        <%= javascript_include_tag "application" %>
        <%= csrf_meta_tags %>
        <%= auto_discovery_link_tag(:atom, products_url(:format => 'atom'))%>
    </head>
    <body id="store">
        <div id="banner">
            <%= image_tag("logo.png") %>
            <%= @page_title||"Pragmatic Bookself"%>
            <%= form_tag store_path,:class => 'locale' do%>
            <%= select_tag 'set_locale', options_for_select(LANGUAGES, I18n.locale.to_s),:onchange => 'this.form.submit()'%>
            <%=submit_tag "submit"%>
            <%= javascript_tag "$$('.locale input').each(Element.hide)"%>
            <%end%>
        </div>
        <div id="columns">
            <div id="side">
                <div id="cart">
                    <%if flash[:notice]%>
                    <%= flash[:notice]%>
                    <%end%>
                    <%if @cart%>
                    <%= render @cart%>
                    <%end%>
                </div>
                <a href="/"><%= t('.home')%></a>
                <br />
                <a href="#"><%= t('.questions')%></a>
                <br />
                <a href="#"><%= t('.news')%></a>
                <br />
                <a href="#"><%= t('.contact')%></a>
                <br />
            </div>
            <div id="main">
                <%= yield %>
            </div>
        </div>
    </body>
</html>
